Skip to content

Conversation

lukashass
Copy link

@lukashass lukashass commented Mar 26, 2023

Closes #205

@yooouuri
Copy link

would love this feature!

@lukashass
Copy link
Author

@kazupon Have you seen this? What do you think? 🙈

@@ -815,7 +817,8 @@ const mergeDeep = (target, ...sources) => {

export default mergeDeep({},
${codes.map(code => `{${code}}`).join(',\n')}
);`
);
export const SUPPORTED_LOCALES = ${JSON.stringify(locales)};`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We prefer to support loaded locales with the API implemented in vue-i18n, not with constants exported in virtual modules.

vue-i18n keeps the locale internally. If the API is provided on the virtual module side, locales conflicts may occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide list of supported locales when lazy loading
3 participants